
package aqu.persistencia.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author angelquin
 */
@Entity
@Table(name = "seg_global")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "SegGlobal.findAll", query = "SELECT s FROM SegGlobal s"),
    @NamedQuery(name = "SegGlobal.findBySegNomVariable", query = "SELECT s FROM SegGlobal s WHERE s.segNomVariable = :segNomVariable"),
    @NamedQuery(name = "SegGlobal.findBySegValorVariable", query = "SELECT s FROM SegGlobal s WHERE s.segValorVariable = :segValorVariable")})
public class SegGlobal implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 200)
    @Column(name = "seg_nom_variable")
    private String segNomVariable;
    @Size(max = 200)
    @Column(name = "seg_valor_variable")
    private String segValorVariable;
    @Size(max = 200)
    @Column(name = "seg_modulo")
    private String seg_modulo;

    public SegGlobal() {
    }

    public SegGlobal(String segNomVariable) {
        this.segNomVariable = segNomVariable;
    }

    public String getSegNomVariable() {
        return segNomVariable;
    }

    public void setSegNomVariable(String segNomVariable) {
        this.segNomVariable = segNomVariable;
    }

    public String getSegValorVariable() {
        return segValorVariable;
    }

    public void setSegValorVariable(String segValorVariable) {
        this.segValorVariable = segValorVariable;
    }

    public String getSeg_modulo() {
        return seg_modulo;
    }

    public void setSeg_modulo(String seg_modulo) {
        this.seg_modulo = seg_modulo;
    }
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (segNomVariable != null ? segNomVariable.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SegGlobal)) {
            return false;
        }
        SegGlobal other = (SegGlobal) object;
        if ((this.segNomVariable == null && other.segNomVariable != null) || (this.segNomVariable != null && !this.segNomVariable.equals(other.segNomVariable))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "empr.SegGlobal[ segNomVariable=" + segNomVariable + " ]";
    }
    
}
